/*
 * gcc -o demo getch.c -l curses
 */

#include <stdio.h>
#include "stdlib.h"
#include "string.h"
#include <curses.h>
int main()
{
   initscr();
    char ch;
    int i;
    while(1){
        ch=getch();
        printf("\n\t0x%x\n",ch);
        fflush(stdout);
    }
    endwin();
    return 0;

}
